﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;

namespace D.B.Data.Infrastructuse
{
    /// <summary>
    /// 仓储
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IBaseRepository<T> where T : class
    {
      public DataDbContext Context { get; }
        int Add(T entity);
        int Update(T entity);
        int Update(List<T> entity);
        IQueryable<T> GetAll();

        int Add(List<T> entity);

        int Del(List<T> Id);

        int Del(T entity);
    }
}
